{include file="pub_header.htm"}

<div class="out_table">
<table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>&nbsp;
      <a href="{$lang.s._public.global.weburl}" target="_self" class="current_place">{$lang.s._public.global.website}</a>
      &raquo; <a href="{$control_index}?act=index" target="_self" class="current_place">论坛首页</a>
      {foreach name=channel_current from=$channel_current item=channel_current}
      &raquo; <a href="{$control_index}?act=channel&channel_id={$channel_current.id}" target="_self" class="current_place">{$channel_current.name|str_entag:'space,br'}</a>
      {/foreach}
    </td>
    <td align="right" nowrap>&nbsp;</td>
  </tr>
</table>
</div>

{if $channel_info.id <= 0}{include file="pub_affiche.htm"}{/if}

{if $channel_upper[$channel_id]|@is_array && $channel_upper[$channel_id]|@count > 0}
{assign var="if_title" value="0"}
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  {if $channel_info.id > 0}
  <tr align="left" class="block_header">
    <td colspan="6">子版块</td>
  </tr>
  {/if}
{foreach name=channel_upper from=$channel_upper[$channel_id] item=item}
  {if $item.if_show  == "1"}
  {if $item.type  == "1"}
    {if $if_title != "1"}
    <tr class="block_title">
      <td width="5%">&nbsp;</td>
      <td width="45%">论坛</td>
      <td width="10%">主题</td>
      <td width="10%">总帖</td>
      <td width="15%">最后主题</td>
      <td width="15%">最后回复</td>
    </tr>
    {assign var="if_title" value="1"}
    {/if}
    <tr align="center" class="block_list" onmouseover="this.className='block_list_over'" onmouseout="this.className='block_list'">
      <td align="center">
        {if $item.password != ""}
        <a href="{$control_index}?act=channel&channel_id={$item.id}" target="_blank"><img src="{$dir_images}/icon_channel_pass.gif" alt="{$item.name|str_entag:'space,br'}" title="在新窗口打开:{$item.name|str_entag:'space,br'}"  border="0" align="absmiddle" /></a>
        {elseif $item.if_lock == "1"}
        <a href="{$control_index}?act=channel&channel_id={$item.id}" target="_blank"><img src="{$dir_images}/icon_channel_lock.gif" alt="{$item.name|str_entag:'space,br'}" title="在新窗口打开:{$item.name|str_entag:'space,br'}"  border="0" align="absmiddle" /></a>
        {elseif $member.time_lastvisit < $item.last_post_time}
        <a href="{$control_index}?act=channel&channel_id={$item.id}" target="_blank"><img src="{$dir_images}/icon_channel_new.gif" alt="{$item.name|str_entag:'space,br'}" title="在新窗口打开:{$item.name|str_entag:'space,br'}"  border="0" align="absmiddle" /></a>
        {else}
        <a href="{$control_index}?act=channel&channel_id={$item.id}" target="_blank"><img src="{$dir_images}/icon_channel.gif" alt="{$item.name|str_entag:'space,br'}" title="在新窗口打开:{$item.name|str_entag:'space,br'}"  border="0" align="absmiddle" /></a>
        {/if}
      </td>
      <td align="left">
        {if $dir_channel_cover|is_file:"`$item.cover_dir`/`$item.cover_filename`" == "1"}
        <img src="{$dir_channel_cover}/{$item.cover_dir}{$item.cover_filename}" alt="{$item.name|str_entag:'space,br'}"  border="0" align="absmiddle" />
        {/if}
        <b><a href="{$control_index}?act=channel&channel_id={$item.id}" target="_self">{$item.name|str_entag:'space,br'}</a></b>
        <br><span class="subsidiary">{$item.brief|str_entag:'space,br'}</span>
        <br>
        {return_channel_manage channel_id=$item.id item=channel_manage_list}
        <span class="subsidiary"><b>版主:</b></span>
        {if $channel_manage_list|@is_array && $channel_manage_list|@count > 0}
        {foreach name=channel_manage_list from=$channel_manage_list item=item}
        <a href="{$control_index}?act=member_view&mid={$item.admin_id}" target="_blank">
          <span style="{if $item.color != '0'}color:{$item.color_value};{/if}{if $item.bold == '1'}font-weight:bold;{/if}">{$item.username}</span>
        </a>
        {if !$smarty.foreach.channel_manage_list.last} | {/if}
        {/foreach}
        {else}
        <span class="subsidiary">无</span>
        {/if}
      </td>
      <td align="center">{$item.number_total_topic}</td>
      <td align="center">{$item.number_total_post}</td>
      <td align="left">
        {if $item.last_topic_time != 0}
        <a href="{$control_index}?act=topic&topic_id={$item.last_topic_id}" target="_self" title="点击查看最后主题: {$item.last_topic_subject|str_entag:'space'}">- {$item.last_topic_subject|str_cut:0:30:"..."|str_entag:"space"}</a>
        <br /><a href="{$control_index}?act=member_view&mid={$item.last_topic_mid}" target="_self" title="{$item.last_topic_musername}"><span class="subsidiary">- {$item.last_topic_musername|str_cut:0:30:"..."|str_entag:"space"}</span></a>
        <br /><span class="subsidiary">- {$item.last_post_time|date_format:'%Y-%m-%d %H:%M:%S'}</span>
        {else}
        &nbsp;
        {/if}
      </td>
      <td align="left">
        {if $item.last_post_time != 0}
        <a href="{$control_index}?act=topic&topic_id={$item.last_post_topic_id}&post_id={$item.last_post_id}&#pid_{$item.last_post_id}" target="_self" title="点击查看最后回复">- {$item.last_post_time|date_format:'%Y-%m-%d %H:%M:%S'}</a>
        <br /><a href="{$control_index}?act=member_view&mid={$item.last_post_mid}" target="_self" title="{$item.last_post_musername}"><span class="subsidiary">- {$item.last_post_musername|str_cut:0:30:"..."|str_entag:"space"}</span></a>
        {else}
        &nbsp;
        {/if}
      </td>
    </tr>
  {elseif $item.type  == "2"}
    {assign var="if_title" value="0"}
    <tr align="left" class="block_header">
      <td colspan="6"><a href="{$control_index}?act=channel&channel_id={$item.id}" target="_self">{$item.name|str_entag:'space,br'}</a></td>
    </tr>
    {if $if_title != "1"}
    <tr class="block_title">
      <td width="5%">&nbsp;</td>
      <td width="40%">论坛</td>
      <td width="10%">主题</td>
      <td width="10%">总帖</td>
      <td width="20%">最后主题</td>
      <td width="15%">最后回复</td>
    </tr>
    {assign var="if_title" value="1"}
    {/if}
    {foreach name=channel_upper_1 from=$channel_upper[$item.id] item=item_1}
    {if $item_1.if_show == "1"}
    {if $item_1.type == "1"}
      <tr align="center" class="block_list" onmouseover="this.className='block_list_over'" onmouseout="this.className='block_list'">
        <td align="center">
          {if $item_1.password != ""}
          <a href="{$control_index}?act=channel&channel_id={$item_1.id}" target="_blank"><img src="{$dir_images}/icon_channel_pass.gif" alt="{$item_1.name|str_entag:'space,br'}" title="在新窗口打开:{$item_1.name|str_entag:'space,br'}"  border="0" align="absmiddle" /></a>
          {elseif $item_1.if_lock == "1"}
          <a href="{$control_index}?act=channel&channel_id={$item_1.id}" target="_blank"><img src="{$dir_images}/icon_channel_lock.gif" alt="{$item_1.name|str_entag:'space,br'}" title="在新窗口打开:{$item_1.name|str_entag:'space,br'}"  border="0" align="absmiddle" /></a>
          {elseif $member.time_lastvisit < $item_1.last_post_time}
          <a href="{$control_index}?act=channel&channel_id={$item_1.id}" target="_blank"><img src="{$dir_images}/icon_channel_new.gif" alt="{$item_1.name|str_entag:'space,br'}" title="在新窗口打开:{$item_1.name|str_entag:'space,br'}"  border="0" align="absmiddle" /></a>
          {else}
          <a href="{$control_index}?act=channel&channel_id={$item_1.id}" target="_blank"><img src="{$dir_images}/icon_channel.gif" alt="{$item_1.name|str_entag:'space,br'}" title="在新窗口打开:{$item_1.name|str_entag:'space,br'}"  border="0" align="absmiddle" /></a>
          {/if}
        </td>
        <td align="left">
          {if $dir_channel_cover|is_file:"`$item_1.cover_dir`/`$item_1.cover_filename`" == "1"}
          <img src="{$dir_channel_cover}/{$item_1.cover_dir}{$item_1.cover_filename}" alt="{$item_1.name|str_entag:'space,br'}" border="0" align="absmiddle" />
          {/if}
          <b><a href="{$control_index}?act=channel&channel_id={$item_1.id}" target="_self">{$item_1.name|str_entag:'space,br'}</a></b>
          <br><span class="subsidiary">{$item_1.brief|str_entag:'space,br'}</span>
          <br>
          {return_channel_manage channel_id=$item_1.id item=channel_manage_list}
          <span class="subsidiary"><b>版主:</b></span>
          {if $channel_manage_list|@is_array && $channel_manage_list|@count > 0}
          {foreach name=channel_manage_list from=$channel_manage_list item=item}
          <a href="{$control_index}?act=member_view&mid={$item.admin_id}" target="_blank">
            <span style="{if $item.color != '0'}color:{$item.color_value};{/if}{if $item.bold == '1'}font-weight:bold;{/if}">{$item.username}</span>
          </a>
          {if !$smarty.foreach.channel_manage_list.last} | {/if}
          {/foreach}
          {else}
          <span class="subsidiary">无</span>
          {/if}
        </td>
        <td align="center">{$item_1.number_total_topic}</td>
        <td align="center">{$item_1.number_total_post}</td>
        <td align="left">
          {if $item_1.last_topic_time != 0}
          <a href="{$control_index}?act=topic&topic_id={$item_1.last_topic_id}" target="_self" title="点击查看最后主题: {$item_1.last_topic_subject|str_entag:'space'}">- {$item_1.last_topic_subject|str_cut:0:30:"..."|str_entag:"space"}</a>
          <br /><a href="{$control_index}?act=member_view&mid={$item_1.last_topic_mid}" target="_self" title="{$item_1.last_topic_musername}"><span class="subsidiary">- {$item_1.last_topic_musername|str_cut:0:30:"..."|str_entag:"space"}</span></a>
          <br /><span class="subsidiary">- {$item_1.last_post_time|date_format:'%Y-%m-%d %H:%M:%S'}</span>
          {else}
          &nbsp;
          {/if}
        </td>
        <td align="left">
          {if $item_1.last_post_time != 0}
          <a href="{$control_index}?act=topic&topic_id={$item_1.last_post_topic_id}&post_id={$item_1.last_post_id}&#pid_{$item_1.last_post_id}" target="_self" title="点击查看最后回复">- {$item_1.last_post_time|date_format:'%Y-%m-%d %H:%M:%S'}</a>
          <br /><a href="{$control_index}?act=member_view&mid={$item_1.last_post_mid}" target="_self" title="{$item_1.last_post_musername}"><span class="subsidiary">- {$item_1.last_post_musername|str_cut:0:30:"..."|str_entag:"space"}</span></a>
          {else}
          &nbsp;
          {/if}
        </td>
      </tr>
    {else}
      <tr align="left" class="block_header">
        <td width="5%">&nbsp;</td>
        <td width="95%" colspan="4">&nbsp;<a href="{$control_index}?act=channel&channel_id={$item_1.id}" target="_self">{$item_1.name|str_entag:'space,br'}</a></td>
      </tr>
    {/if}
    {/if}
    {/foreach}
    {assign var="if_title" value="0"}
  {/if}
  {/if}
{/foreach}
</table>
</div>
{/if}

{if $need_pass == "1"}
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<form action="{$control_index}?act=channel&ope=savepass&channel_id={$channel_info.id}" method="post" name="channel_password" id="channel_password" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="7">{$channel_info.name|str_entag:'space,br'}</td>
  </tr>
  <tr class="block_title">
    <td colspan="2" align="left">请输入论坛密码进行访问:</td>
  </tr>
  <tr>
    <td valign="top" width="20%" class="block_left">论坛密码:</td>
    <td width="80%" class="block_right">
      <input type="password" id="password" name="password" size="32" maxlength="255" class="input">
      {if $error_message != ""}<span class="prompt_failed"><img src="{$dir_images}/icon_warning.gif" border="0" align="absmiddle" /> {$error_message}</span>{/if}
    </td>
  </tr>
  <tr class="block_footer">
    <td colspan="2" align="center">
      <input type="submit" value="确定" name="channel_password_submit" id="channel_password_submit" class="submit">
    </td>
  </tr>
</table>
</form>
</div>
{else}
{if $channel_info.type == "1"}
<div class="out_table">
<div class="out_table"><div class="space"></div></div>
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_notice">
  <tr>
    <td align="left" class="block_notice_subject">{$channel_info.name|str_entag:'space,br'}</td>
    <td align="right" class="block_notice_info"><input type="button" value="收藏本版块" class="button_transparent" style="padding-left:15px;background-image:url({$dir_images}/icon_favorite.gif);background-position:0px 2px;" onclick="self.location.href='index.php?act=cp_favorite&ope=channel_add&channel_id={$channel_info.id}'"></td>
  </tr>
  <tr align="left" class="block_notice_info">
    <td colspan="2"><b>简介:</b> {$channel_info.brief}</td>
  </tr>
  {if $channel_info.notice != ""}
  <tr align="left" class="block_notice_content">
    <td colspan="2"><b>注意:</b></td>
  </tr>
  <tr align="left" class="block_notice_content">
    <td colspan="2">{$channel_info.notice}</td>
  </tr>
  {/if}
  {return_channel_manage channel_id=$channel_info.id item=channel_manage_list}
  <tr align="left" class="block_notice_info">
    <td colspan="2"><b>版主:</b>
      {if $channel_manage_list|@is_array && $channel_manage_list|@count > 0}
      {foreach name=channel_manage_list from=$channel_manage_list item=item}
      <a href="{$control_index}?act=member_view&mid={$item.admin_id}" target="_blank">
        <span style="{if $item.color != '0'}color:{$item.color_value};{/if}{if $item.bold == '1'}font-weight:bold;{/if}">{$item.username}</span>
      </a>
      {if !$smarty.foreach.channel_manage_list.last} | {/if}
      {/foreach}
      {else}
      <span class="subsidiary">无</span>
      {/if}
    </td>
  </tr>
</table>
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center">
  <tr>
    <td align="left">
    {if $pagination.page_total > 1}
      <span class="pagination_post_list">
        <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
        <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><span class="pagelink_current_rate">{$pagination.page_current}</span>/{$pagination.page_total}</span>
        {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self">&laquo;</a></span>{/if}
        {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self">&#8249;</a></span>{/if}
        {foreach name=page_list from=$pagination.page_list item=page_list}
          {if $page_list.if_current == "1"}
            <span class="pagelink_current" title="Current page{$page_list.page}">{$page_list.page}</span>
          {else}
            <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self">{$page_list.page}</a></span>
          {/if}
        {/foreach}
        {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self">&#8250;</a></span>{/if}
        {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self">&raquo;</a></span>{/if}
        <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
        {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
        {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
        {foreach name=page_select from=$pagination.page_select item=page_select}
          {if $page_select.if_current == "1"}
            <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
          {else}
            <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
          {/if}
        {/foreach}
        {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
        {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
        </select>
      </span>
    {/if}
    </td>
    <td align="right">
      {if $channel_info.if_lock != "1" || ($admin.ag_privilege.channel_lockpost == "1" || ($admin.ag_privilege.channel_lockpost == "3" && $channel_top.channel_manage_admin_id != "")) }
      <a href="index.php?act=post&channel_id={$channel_info.id}" target="_self"><img src="{$dir_images}/post_topic.gif" border="0"></a>
      {/if}
    </td>
  </tr>
</table>
{if ($admin.ag_privilege.topic == "1") || ($admin.ag_privilege.topic == "3" && $channel_top.channel_manage_admin_id != "")}
<form action="asfdadsf" method="post" id="bw_form_topic_list" name="bw_form_topic_list">
{/if}
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr class="block_title">
    {if ($admin.ag_privilege.topic == "1") || ($admin.ag_privilege.topic == "3" && $channel_top.channel_manage_admin_id != "")}
    <td width="3%">&nbsp;</td>
    {/if}
    <td width="3%">&nbsp;</td>
    <td width="3%">&nbsp;</td>
    <td width="51%" align="left">标题</td>
    <td width="15%">作者</td>
    <td width="5%">回复</td>
    <td width="5%">点击</td>
    <td width="15%" align="left">最后回复</td>
  </tr>
  {foreach name=topic_list from=$topic_list item=topic_list}
  <tr align="center" class="block_list" onmouseover="this.className='block_list_over'" onmouseout="this.className='block_list'">
    {if ($admin.ag_privilege.topic == "1") || ($admin.ag_privilege.topic == "3" && $channel_top.channel_manage_admin_id != "")}
      <td nowrap><input type="checkbox" id="choice[{$topic_list.id}]" name="choice[{$topic_list.id}]" handle="topic" value="{$topic_list.id}"></td>
    {/if}
    <td>
      <a href="{$control_index}?act=topic&topic_id={$topic_list.id}" target="_blank" title="在新窗口打开主题">
        {if $topic_list.if_elite==1 || ($topic_list.if_elite==3 AND $topic_list.if_elite_begin < $smarty.now && $topic_list.if_elite_end > $smarty.now)}
        <img src="{$dir_images}/icon_topic_elite.gif" alt="精" title="精华帖,在新窗口打开主题" border="0" align="absmiddle" />
        {elseif $topic_list.if_top==1 || ($topic_list.if_top==3 AND $topic_list.if_top_begin < $smarty.now && $topic_list.if_top_end > $smarty.now)}
        <img src="{$dir_images}/icon_topic_top.gif" alt="顶" title="置顶帖,在新窗口打开主题" border="0" align="absmiddle" />
        {elseif $topic_list.if_close==1 || ($topic_list.if_close==3 AND $topic_list.if_close_begin < $smarty.now && $topic_list.if_close_end > $smarty.now)}
        <img src="{$dir_images}/icon_topic_lock.gif" alt="锁" title="锁定帖,在新窗口打开主题" border="0" align="absmiddle" />
        {elseif $topic_list.number_reply > $config.max_topic_hot}
        <img src="{$dir_images}/icon_topic_hot.gif" alt="热" title="热门帖,在新窗口打开主题" border="0" align="absmiddle" />
        {else}
        <img src="{$dir_images}/icon_topic.gif" alt="新" title="在新窗口打开主题" border="0" align="absmiddle" />
        {/if}
      </a>
    </td>
    <td>{if $topic_list.icon_filename != ""}<img src="images/icon_topic/{$topic_list.icon_filename}" alt="图" border="0" align="absmiddle" />{else}&nbsp;{/if}</td>
    <td align="left"><a href="{$control_index}?act=topic&topic_id={$topic_list.id}" target="_self" title="{$topic_list.subject|str_entag:'space,br'}"><b>{$topic_list.subject|str_entag:"space"}</b></a></td>
    <td nowrap><a href="{$control_index}?act=member_view&mid={$topic_list.post_mid}" target="_self" title="{$topic_list.post_musername}">{$topic_list.post_musername}</a></td>
    <td nowrap>{$topic_list.number_reply}</td>
    <td nowrap>{$topic_list.number_click}</td>
    <td align="left">
      <a href="{$control_index}?act=topic&topic_id={$topic_list.id}&post_id={$topic_list.last_pid}&#pid_{$topic_list.last_pid}" target="_self" title="点击查看最后回复">{$topic_list.last_time|date_format:'%Y-%m-%d %H:%M:%S'}</a>
      <br />- <a href="{$control_index}?act=member_view&mid={$topic_list.last_mid}" target="_self" title="{$topic_list.last_musername}">{$topic_list.last_musername}</a>
    </td>
  </tr>
  {/foreach}
  {if ($admin.ag_privilege.topic == "1") || ($admin.ag_privilege.topic == "3" && $channel_top.channel_manage_admin_id != "")}
  <tr class="block_footer">
    <td colspan="8">
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
      <tr>
        <td align="left">
          <input type="button" id="check_on" name="check_on" value="全选" class="button">
          <input type="button" id="check_off" name="check_off" value="不选" class="button">
          <input type="button" id="check_toggle" name="check_toggle" value="反选" class="button">
        </td>
        <td align="right">
          {*<!-- del -->*}
          <input type="button" value="主题删除" id="topic_del_button" name="topic_del_button" class="button">
          <input type="hidden" value="{$control_index}?act=channel&ope=del&channel_id={$get.channel_id}&pag={$get.pag}" id="topic_del_action" name="topic_del_action">
          <div id="topic_del_confirm" name="topic_del_confirm" title="确认主题删除"><p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>您确定删除这些帖子吗?</p></div>
          {*<!-- move -->*}
          <input type="button" value="主题移动" id="topic_move_button" name="topic_move_button" class="button">
          <input type="hidden" value="{$control_index}?act=channel&ope=move&channel_id={$get.channel_id}&pag={$get.pag}" id="topic_move_action" name="topic_move_action">
          <div id="topic_move_confirm" name="topic_move_confirm" title="确认主题移动">
            <p>
            <span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>请选择您要移动到哪个板块?<br />
            <select id="channel_tree_move" name="channel_tree_move" class="select">
              <option value="0">= 板块列表 =</option>
              {foreach name=channel_tree from=$channel_tree item=channel_tree}
                {if $channel_tree.disable=="1"}
                <optgroup label="{$channel_tree.name|indent:$channel_tree.depth:'&nbsp;&nbsp;&nbsp;&nbsp;'}"></optgroup>
                {else}
                <option value="{$channel_tree.id}">{$channel_tree.name|indent:$channel_tree.depth:"&nbsp;&nbsp;&nbsp;&nbsp;"}</option>
                {/if}
              {/foreach}
            </select>
            <div id="topic_move_confirm_warn" name="topic_move_confirm_warn"><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>您必须选择类别!</div>
            </p>
          </div>
          {*<!-- ////// -->*}
        </td>
      </tr>
    </table>
    </td>
  </tr>
  {/if}
</table>
{if ($admin.ag_privilege.topic == "1") || ($admin.ag_privilege.topic == "3" && $channel_top.channel_manage_admin_id != "")}
</form>
{/if}
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center">
  <tr>
    <td align="left">
    {if $pagination.page_total > 1}
      <span class="pagination_post_list">
        <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
        <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><span class="pagelink_current_rate">{$pagination.page_current}</span>/{$pagination.page_total}</span>
        {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self">&laquo;</a></span>{/if}
        {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self">&#8249;</a></span>{/if}
        {foreach name=page_list from=$pagination.page_list item=page_list}
          {if $page_list.if_current == "1"}
            <span class="pagelink_current" title="Current page{$page_list.page}">{$page_list.page}</span>
          {else}
            <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self">{$page_list.page}</a></span>
          {/if}
        {/foreach}
        {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self">&#8250;</a></span>{/if}
        {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self">&raquo;</a></span>{/if}
        <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
        {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
        {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
        {foreach name=page_select from=$pagination.page_select item=page_select}
          {if $page_select.if_current == "1"}
            <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
          {else}
            <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
          {/if}
        {/foreach}
        {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
        {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
        </select>
      </span>
    {/if}
    </td>
    <td align="right">
      {if $channel_info.if_lock != "1" || ($admin.ag_privilege.channel_lockpost == "1" || ($admin.ag_privilege.channel_lockpost == "3" && $channel_top.channel_manage_admin_id != "")) }
      <a href="index.php?act=post&channel_id={$channel_info.id}" target="_self"><img src="{$dir_images}/post_topic.gif" border="0"></a>
      {/if}
    </td>
  </tr>
</table>
</div>
{/if}
{/if}

{if $channel_info.id <= 0}{include file="pub_friendlink.htm"}{/if}

{include file="pub_footer.htm"}
